//
//  OrdercommentsTableViewCell.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/9.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "OrdercommentsTableViewCell.h"

@interface OrdercommentsTableViewCell ()

@property (weak, nonatomic) IBOutlet UITextView *comment;

@end


@implementation OrdercommentsTableViewCell

- (void)awakeFromNib {
    // Initialization code
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype) OrdercommentsWithTableView:(UITableView *)tableView
{
    static NSString *identifier = @"cell";
    OrdercommentsTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"OrdercommentsTableViewCell" owner:nil options:nil] lastObject];
    }
    return cell;
}

- (void)setDic:(NSDictionary *)dic
{
    _dic = dic;
    self.comment.text = dic[@"comment"];
}

@end
